package com.ruoyi.course.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.course.domain.ExamClassCategory;
import com.ruoyi.course.vo.ExamClassCategoryVo;
import com.ruoyi.course.mapper.ExamClassCategoryMapper;
import com.ruoyi.course.service.IExamClassCategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 班次分类Service业务层处理
 *
 * @author Tellsea
 * @date 2025-10-14
 */
@Service
public class ExamClassCategoryServiceImpl extends ServiceImpl<ExamClassCategoryMapper, ExamClassCategory> implements IExamClassCategoryService {

    @Override
    public TableDataInfo<ExamClassCategoryVo> queryList(ExamClassCategoryVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<ExamClassCategoryVo> queryAll(ExamClassCategoryVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public ExamClassCategoryVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
